import 'package:app/data/services/rtc_service.dart';
import 'package:get/get.dart';

import 'state.dart';

class MainLogic extends GetxController {
  final state = MainState();

  @override
  void onInit() {
    super.onInit();
    Get.putAsync(() => RtcService().init());
  }

  changeIndex(int index) {
    state.currentIndex.value = index;
  }

  changeStatus(bool connected) {
    state.currentStatus.value = connected;
  }
}
